import http from '@/axios/http.ts'

/**
 * 添加标签
 * @param {*} p 
 * @returns 
 */
export const addTag = (params) => {
    return http.post('/Tag/AddTag', params);
}

/**
 * 获取所有标签
 * @param {*} p 
 * @returns 
 */
export const getAllTag = () => {
    return http.post('/Tag/GetAllTag');
}

/**
 * 删除标签
 * @param {*} p 
 * @returns 
 */
export const deleteTag = (parmas) => {
    return http.post('/Tag/DeleteTag?id=' + parmas);
}

/**
 * 根据字典code来获取标签类型数据
 * @param {*} p 
 * @returns 
 */
export const getTagByType = (params: String) => {
    return http.get('/Tag/GetTagByType', params);
}